package com.settlement.system.controller;

import com.settlement.system.model.entity.common.TblRrMailRemit;
import com.settlement.system.service.IBaseService;
import com.settlement.system.service.ITblRrMailRemitService;
import com.settlement.system.common.util.common.FasUtil;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import java.util.Map;

/**
 * 邮件打款 前端控制器
 *
 * @author Ximi
 * @since 2020-08-10
 */

@Api(tags = "邮件打款", description = "邮件打款")
@RestController
@RequestMapping("/rr/mail/remit")
public class TblRrMailRemitController extends MergeApiExcelController<TblRrMailRemit,Map<String,Object>> {

    @Resource
    private ITblRrMailRemitService tblRrMailRemitService;

    @Override
    public IBaseService init() {
        return tblRrMailRemitService;
    }

    @Override
    public Class<?> getModelClass() {
        return TblRrMailRemit.class;
    }

    @Override
    protected void setParamsModel(Map<String, Object> model) {
        FasUtil.formatInQueryCondition(model,"ncShopName","businessSerialNo");
        super.setParamsModel(model);
    }
}

